package com.cnswhy.cloud.server.core.config;

import com.cnswhy.cloud.common.datasource.service.UidGenerator;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class CnswhyServerCoreConfig {

    @Bean("uidGenerator")
    @ConditionalOnMissingBean
    public UidGenerator uidGenerator() {
        return new RedisUidGenerator();
    }
}
